<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>findIndexTest</title>
	<script src="../../dist/Free.js"></script>
</head>
<body>
	<script>
		// 定义一个数组
        const arr = [1,500, 2, 3, 4, 5, 6,1024,2028];
    
		// 找到大于1000 的一个元素的索引
        let result = $.arrayUtils.findIndex(arr,(item,index)=>{
            return item > 1000;
        });
        console.log(result);

		result = $.arrayUtils.findIndex(arr);
		console.log(result);

		// result = $.arrayUtils.findIndex("demo",(item,index)=>{
        //     return item > 1000;
        // });

		result = $.arrayUtils.findIndex(arr,"demo");
	</script>
</body>
</html>